package com.js.mapper;

import com.js.pojo.Student;
import com.js.pojo.Teacher;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TeacherMapper {
    //添加老师
    int addTeacher(Teacher teacher);
    //根据id删除老师
    int deleteTeacherById(@Param("id") int id);
    //更新Teacher
    int updateTeacher(Teacher teacher);
    //查找(根据id)
    Teacher queryTeacherById(@Param("id") int id);
    //查找(根据 老师账号
    Teacher queryTeacherByAccount(@Param("account") String account);
    //查询全部老师
    List<Teacher> queryAllTeacher();
    //模糊查询 老师姓名
    List<Teacher> queryTeacherByName(String t);
}
